<?php 

	@$db = new mysqli('localhost','root','','fiuba');

	header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
	header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header ("Cache-Control: no-cache, must-revalidate");  // HTTP/1.1
	header ("Pragma: no-cache");
	//header ("Content-type: application/xml"); //uncomment this line if you plan to send XML

	//...................

	
	$query = "SELECT number, name FROM fiuba.department order by number";
	
	$resultado = $db->query($query);
	echo "<option value='0'> </option>";	
	for ($i=0; $i<$resultado->num_rows;$i++)
	{	
			$row = $resultado->fetch_assoc();
			echo "<option value=".+$row ['number'].">". $row['name']."</option>";
	}
	
	$db->query($query);		
	$db->close();
		
?>

 



